import request from '@/utils/request'

// 查询支付详情，存储订单支付信息列表
export function listPaymentdetails(query) {
  return request({
    url: '/order/paymentdetails/list',
    method: 'get',
    params: query
  })
}

// 查询支付详情，存储订单支付信息详细
export function getPaymentdetails(paymentId) {
  return request({
    url: '/order/paymentdetails/' + paymentId,
    method: 'get'
  })
}

// 新增支付详情，存储订单支付信息
export function addPaymentdetails(data) {
  return request({
    url: '/order/paymentdetails',
    method: 'post',
    data: data
  })
}

// 修改支付详情，存储订单支付信息
export function updatePaymentdetails(data) {
  return request({
    url: '/order/paymentdetails',
    method: 'put',
    data: data
  })
}

// 删除支付详情，存储订单支付信息
export function delPaymentdetails(paymentId) {
  return request({
    url: '/order/paymentdetails/' + paymentId,
    method: 'delete'
  })
}
